package com.gitee.webdav.kernel.serializer;

import java.io.InputStream;

/**
 * @author hongda.li
 */
public interface XmlSerializer {

    <Bean> String toXml(Bean bean);

    <Bean> Bean fromXml(String xml, Class<Bean> clazz);

    <Bean> Bean fromXml(InputStream stream, Class<Bean> clazz);
}
